local L = VisualThemes:GetLocaleTable()

VisualThemes:RegisterAddOnFunc("eePanels2", function(self)
	self:Hook(eePanels2, "CreateFrame", function(obj, panel, i, ...)
		self.hooks[obj].CreateFrame(obj, panel, i, ...)
		if panel.frame then
			panel.frame:Hide()
			self:RegisterFrames(L["eePanels2"], 0, panel.frame:GetName())
			panel.frame:Show()
		end	
	end)
end)